package info.ask4research.model.enums;

public enum QuestionsDefine {

	NOW(0), RUNTIME(1);
	
	private int id;

	private QuestionsDefine(int id) {
		this.id = id;
	}
	
	public int getId() {
		return this.id;
	}
	
    public static QuestionsDefine valueOf(int value) {
        switch (value) {
            case 0: return NOW;
            case 1: return RUNTIME;
            default: return NOW;
        }
    }
    
    public String getName() {
		switch(this.id) {
		case 0:
			return "NOW";
		case 1:
			return "RUNTIME";
		default:
			return "NOW";
		}
	}
    
    @Override
    public String toString() {
		switch(this.id) {
		case 0:
			return "NOW";
		case 1:
			return "RUNTIME"; 
		default:
			return "NOW";
		}
    }
    
}
